<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/admin/jsp/taglibs.jsp"%>
<html>
	<head>
		<%@ include file="/admin/jsp/header.jsp"%>
		<%@ include file="/framework/jsp/validation.jsp"%>
		<script language="javascript" src="/framework/js/tips_alert.js"></script>
	</head>
	<body>
		<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
			<tr>
				<td class="page-title">
					<img src="../images/page_title.gif" alt="title" width="17" height="12" align="absmiddle">
					&nbsp;&nbsp; 组织管理 » 单位管理 » 单位修改
				</td>
			</tr>
		</table>
		<br>
		<form id="form" action="/admin/jsp/corpMgr.do?method=updDept" method="post">
			<input type="hidden" name="corpId" id="corpId" value="<c:out value='${resultObject.corpId}'/>">
			<input type="hidden" name="corpType" id="corpType" value="<c:out value='${resultObject.corpType}'/>">
			<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
				<tr>
					<td align="right" valign="middle">
						<font color="red">*&nbsp;</font>单位全称
					</td>
					<td>
						<input name="corpName" class="required max-length-25" type="text" id="corpName" size="20" 
							value="<c:out value='${resultObject.corpName}'/>">
						<a href="#"><img src="../images/help.gif" tips="单位全称，25字以内" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle">
						<font color="red">*&nbsp;</font>单位简称
					</td>
					<td>
						<input name="shortName" class="max-length-10" type="text" id="shortName" size="20" 
							value="<c:out value='${resultObject.shortName}'/>">
						<a href="#"><img src="../images/help.gif" tips="单位简称，10字以内" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					
					<td align="right" valign="middle">上级单位</td>
					<td>
						<select name="parentCorpId" id="parentCorpId">
							<option value="0">--无上级单位--</option>
							<c:forEach var="corp" items="${corpList}">
								<option value="<c:out value='${corp.corpId}'/>"><c:out value="${corp.corpName}"/></option>
							</c:forEach>
						</select>
						<a href="#"><img src="../images/help.gif" tips="上级单位" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle">
						<font color="red">*&nbsp;</font>短信特服号
					</td>
					<td>
						<input name="smsSpCode" class="max-length-20" type="text" id="smsSpCode" size="20" value="<c:out value='${resultObject.smsSpCode}'/>">
						<a href="#"><img src="../images/help.gif" tips="短信特服号，20字以内" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle">
						<font color="red">*&nbsp;</font>彩信特服号
					</td>
					<td>
						<input name="mmsSpCode" class="max-length-20" type="text" id="mmsSpCode" size="20" value="<c:out value='${resultObject.mmsSpCode}'/>">
						<a href="#"><img src="../images/help.gif" tips="彩信特服号，20字以内" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle">
						<font color="red">*&nbsp;</font>地区范围
					</td>
					<td>
						<c:forEach var="region" items="${regionList}">
							<input class="validate-one-required" type="checkbox" name="regionRanges" value="${region.regionId}">
							<c:out value="${region.regionName}"/>
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle"><font color="red">*&nbsp;</font>联系人</td>
					<td>
						<input name="contactName" class="required max-length-10" type="text" id="contactName" size="20" 
							value="<c:out value='${resultObject.contactName}'/>">
						<a href="#"><img src="../images/help.gif" tips="联系人，10字以内" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>				
				<tr>
					<td align="right" valign="middle"><font color="red">*&nbsp;</font>移动电话</td>
					<td>
						<input name="tel" class="required validate-mobile-phone" type="text" id="tel" size="20" 
						value="<c:out value='${resultObject.tel}'/>">
						<a href="#"><img src="../images/help.gif" tips="输入11位手机号码" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle"><font color="red">*&nbsp;</font>Email</td>
					<td>
						<input name="email" class="validate-email" type="text" id="email" size="20" value="<c:out value='${resultObject.email}'/>">
						<a href="#"><img src="../images/help.gif" tips="Email，200字以内"
								width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle">描述信息</td>
					<td>
						<textarea name="corpDesc" rows="4" cols="40" id="corpDesc" class="max-length-200"><c:out value="${resultObject.corpDesc}"/></textarea>
						<a href="#"><img src="../images/help.gif" tips="单位描述，200字以内" width="14" height="15" border="0" align="absmiddle"> </a>
					</td>
				</tr>
				<tr>
					<td align="right" valign="middle">
						<font color="red">*&nbsp;</font>单位状态

					</td>
					<td>
						<input name="status" class="validate-one-required" type="radio" id="status" value="1">
						有效
						<input name="status" class="validate-one-required" type="radio" id="status" value="0">
						无效
					</td>
				</tr>
				<tr>
					<td align="center" valign="middle" colspan="2">
						<input type="submit" class="short-button" value="提  交" />
						<input type="button" class="short-button" value="返  回" onclick="window.location='/admin/jsp/corpMgr.do?method=queryCorp'" />
					</td>								
				</tr>
			</table>

		</form>
	</body>
	<script>
		new Validation('form',{immediate:true});
		setObjSelected('parentCorpId','<c:out value="${resultObject.parentCorpId}"/>');
		setCheckboxCheckedValue('regionRanges','<c:out value="${resultObject.regionRange}"/>');
		checkedRadio('status','<c:out value="${resultObject.status}"/>');
	</script>
</html>